package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.management.service.ReportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:gzc
 * @Date: 2025/10/07 19:32
 * @Description:
 */
@RestController
@RequestMapping("/report")
@Slf4j
public class ReportController {

    @Autowired
    private ReportService reportService;

    @GetMapping("/overview")
    public Result queryOverview(){
        log.info("查询首页数据");
        return Result.success(reportService.queryOverview());
    }
}
